
// src/access.ts
export default (initialState: API.UserInfo) => {
  // Check if the user is a normal manager
  const isNormalManager = initialState && initialState.userInfo.role === '1'; // 1 为普通管理员，普通管理员不展示超级管理员路由
  // Define the access function
  const access = {
    canSeeSuperAdmin: !isNormalManager,
  };

  return access;
};